package com.raza.plaza.service;

import com.raza.plaza.service.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * des. 用户服务客户端
 * @author       : RazaJin
 * @date         : 2020/12/17 0017 10:28
 */
@FeignClient(value = "list-user",fallback = UserServiceFallback.class)
public interface UserService {
    /**
     * des. 获取用户信息
     * id 用户id
     * @author       : RazaJin
     * @date         : 2020/12/17 0017 10:26
     */
    @GetMapping(value = "/user/{id}")
    String getUser(@PathVariable("id") String id);
}
